/**
 * 
 */
package org.rado.chessbastard.board.objects.actions;

import org.rado.chessbastard.board.objects.IBoardSquare;

/**
 * @author rado
 *
 */
public abstract class AbstractPieceAction implements IPieceAction {

	private IBoardSquare initialLocation;
	private IBoardSquare targetLocation;
	
	public AbstractPieceAction( IBoardSquare initialLocation,IBoardSquare targetLocation){
		this.initialLocation=initialLocation;
		this.targetLocation=targetLocation;
	}

	/* (non-Javadoc)
	 * @see org.rado.chessbastard.board.objects.actions.IMove#getInitialLocation()
	 */
	@Override
	public IBoardSquare getInitialLocation() {
		return initialLocation;
	}

	/* (non-Javadoc)
	 * @see org.rado.chessbastard.board.objects.actions.IMove#getTargetLocation()
	 */
	@Override
	public IBoardSquare getTargetLocation() {
		return targetLocation;
	}

}
